var e = require("../../common/vendor.js"), t = require("../../api/ajax.js"), i = require("../../config/config.js");

require("../../api/service.js"), require("../../utils/luch-request/core/Request.js"), 
require("../../utils/luch-request/core/dispatchRequest.js"), require("../../utils/luch-request/adapters/index.js"), 
require("../../utils/luch-request/helpers/buildURL.js"), require("../../utils/luch-request/utils.js"), 
require("../../utils/luch-request/core/buildFullPath.js"), require("../../utils/luch-request/helpers/isAbsoluteURL.js"), 
require("../../utils/luch-request/helpers/combineURLs.js"), require("../../utils/luch-request/core/settle.js"), 
require("../../utils/luch-request/core/InterceptorManager.js"), require("../../utils/luch-request/core/mergeConfig.js"), 
require("../../utils/luch-request/core/defaults.js"), require("../../utils/luch-request/utils/clone.js"), 
require("../../uni_modules/u-store/js_sdk/Storage.js");

var r = {
    data: function() {
        return {
            value: 0,
            base: i.base,
            title: "Hello",
            list: [ {}, {}, {} ]
        };
    },
    onLoad: function() {
        this.getInfoData();
    },
    methods: {
        getInfoData: function() {
            var e = this;
            t.doGetUrl("widget.Widget/swiper", {
                category_id: 8
            }).then(function(t) {
                var i = t.data.data;
                e.list = e.setswiperItems(i), console.log("infoData", i);
            });
        },
        change: function(t) {
            if (1 == t) return e.index.showToast({
                icon: "none",
                title: "请您先登录"
            });
            this.value = t;
        },
        goTabs: function(t) {
            e.index.switchTab({
                url: "/pages/" + t
            });
        },
        goPage: function(t) {
            e.index.navigateTo({
                url: "/pages/" + t
            });
        },
        setswiperItems: function(e) {
            var t = [];
            return e.forEach(function(e) {
                t.push({
                    titlepic: i.base.siteUrl + e.titlepic,
                    title: e.title,
                    type: "image"
                });
            }), t;
        }
    }
};

Array || (e.resolveComponent("uv-swiper") + e.resolveComponent("uv-image") + e.resolveComponent("uv-grid-item") + e.resolveComponent("uv-grid") + e.resolveComponent("uv-gap"))(), 
Math || (function() {
    return "../../uni_modules/uv-swiper/components/uv-swiper/uv-swiper.js";
} + function() {
    return "../../uni_modules/uv-image/components/uv-image/uv-image.js";
} + function() {
    return "../../uni_modules/uv-grid/components/uv-grid-item/uv-grid-item.js";
} + function() {
    return "../../uni_modules/uv-grid/components/uv-grid/uv-grid.js";
} + function() {
    return "../../uni_modules/uv-gap/components/uv-gap/uv-gap.js";
})();

var u = e._export_sfc(r, [ [ "render", function(t, i, r, u, s, o) {
    return {
        a: e.p({
            list: s.list,
            imgMode: "widthFX",
            width: "750rpx",
            height: "789rpx",
            keyName: "titlepic",
            autoplay: !0,
            indicator: !0,
            indicatorMode: "line",
            circular: !0,
            radius: "0"
        }),
        b: e.p({
            src: "/static/home/baojia.jpg",
            width: "330rpx",
            mode: "widthFix"
        }),
        c: e.o(function(e) {
            return o.goTabs("index/product");
        }),
        d: e.p({
            src: "/static/home/zhibao.jpg",
            width: "330rpx",
            mode: "widthFix"
        }),
        e: e.o(function(e) {
            return o.goTabs("index/ucenter");
        }),
        f: e.p({
            col: 2,
            border: !1
        }),
        g: e.p({
            src: "/static/home/banner2.jpg",
            width: "750rpx",
            mode: "widthFix"
        }),
        h: e.o(function(e) {
            return o.goPage("single/single?id=40");
        }),
        i: e.p({
            src: "/static/home/banner3.jpg",
            width: "750rpx",
            mode: "widthFix"
        }),
        j: e.p({
            src: "/static/home/banner4.jpg",
            width: "750rpx",
            mode: "widthFix"
        }),
        k: e.p({
            src: "/static/home/shouhou.jpg",
            width: "700rpx",
            mode: "widthFix"
        }),
        l: e.p({
            src: "/static/image/bottom.png",
            width: "750rpx",
            mode: "widthFix"
        }),
        m: e.o(function(e) {
            return o.goPage("submit/quality");
        }),
        n: e.p({
            height: "20"
        })
    };
} ] ]);

wx.createPage(u);